﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System.Diagnostics;
using System.IO;
#endregion using

namespace Turn_ament
{
    class Unit_Tank:Unit
    {
        #region Constructor
        public Unit_Tank(int health, int damage, int movement, int attackRange, int chanceToHit, Texture2D texture, Tile tile, int size, SpriteBatch spriteBatch)
            : base(health, damage, movement, attackRange, chanceToHit, texture, tile, size, spriteBatch)
        {
            name = "Tank";
        }
        #endregion Constructor

        #region Methods
        public override int GetUnitVsUnitDamage(Unit unit)
        {
            int dmg = 0;
            if (unit is Unit_Soldier)
            {
                dmg = Damage + 1;
            }
            else if (unit is Unit_Tank)
            {
                dmg = Damage;
            }
            else if (unit is Unit_Ranged)
            {
                dmg = Damage - 1;
            }
            return dmg;
        }
        #endregion Methods
    }
}
